<?php

namespace app\api\controller;

class Pay extends Api
{
    protected $noNeedLogin =["payVip"];

    //专项服务购买
    public function PaySpecial(){
        $data = (new \app\api\model\Pay())->PaySpecial($this->request_array);
        $data['code'] == 200 ? $this->success($data['msg'],$data['data']) : $this->error($data['msg']);
    }

    //企服套餐购买
    public function PayPackage(){
        $data = (new \app\api\model\Pay())->PayPackage($this->request_array);
        $data['code'] == 200 ? $this->success($data['msg'],$data['data']) : $this->error($data['msg']);
    }

    //商品购买
    public function PayGoods(){
        $data = (new \app\api\model\Pay())->PayGoods($this->request_array);
        $data['code'] == 200 ? $this->success($data['msg'],$data['data']) : $this->error($data['msg']);
    }


    public function payAdvise(){
        $data = (new \app\api\model\Pay())->payAdvise($this->request_array);
        $data['code'] == 200 ? $this->success($data['msg'],$data['data']) : $this->error($data['msg']);
    }

    public function PayVip(){
        $data = (new \app\api\model\Pay())->payVip($this->request_array);
        $data['code'] == 200 ? $this->success($data['msg'],$data['data']) : $this->error($data['msg']);
    }


}